package com.futureCloudMOM.core.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.futureCloudMOM.core.entity.FBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "Quality_Link", description = "物料/BP/检验分类/频次关联表")
@TableName(value = "Quality_Link")
public class QualityLink extends FBaseEntity implements Serializable {


    
    @NotNull(message="[物料Id]不能为空")
    @ApiModelProperty("物料Id")
    @TableField(value = "materialId")
    private Long materialId;
    
    @ApiModelProperty("供应商Id")
    @TableField(value = "supplierId")
    private Long supplierId;
    
    @ApiModelProperty("客户Id")
    @TableField(value = "customerId")
    private Long customerId;
    
    @ApiModelProperty("工序Id")
    @TableField(value = "taskId")
    private Long taskId;
    
    @ApiModelProperty("检验频次Id")
    @TableField(value = "frequencyId")
    private Long frequencyId;
    
    @ApiModelProperty("检验分类Id")
    @TableField(value = "typeId")
    private Long typeId;
    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("备注")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "remark")
    private String remark;






}

